package com.eec.spring.ioc;

import com.eec.spring.ioc.springEnum.ScopeType;

/**
 * @author LeeC
 * @description
 * @date 2025/7/20
 * @PACKAGE_NAME com.eec.spring.ioc
 */
public class BeanDefinition {
    private Class<?> clazz;
    private ScopeType scope = ScopeType.SINGLETON;

    public BeanDefinition() {}
    public BeanDefinition(Class<?> clazz, ScopeType scope) {
        this.clazz = clazz;
        this.scope = scope;
    }
    public BeanDefinition(Class<?> clazz) {
        this.clazz = clazz;
    }
    public BeanDefinition(ScopeType scope) {
        this.scope = scope;
    }
    public Class<?> getClazz() {
        return clazz;
    }
    public void setClazz(Class<?> clazz) {
        this.clazz = clazz;
    }
    public ScopeType getScope() {
        return scope;
    }
    public void setScope(ScopeType scope) {
        this.scope = scope;
    }
}
